import { IsInt, IsString, IsArray, IsOptional, IsNotEmpty } from 'class-validator'

export class CreateRoleDto {
  @IsInt()
  role_id: number

  @IsString()
  @IsNotEmpty()
  role_name: string

  @IsString()
  @IsNotEmpty()
  role_desc: string

  @IsArray()
  @IsOptional()
  router_ids: number[]

  @IsArray()
  @IsOptional()
  router_desc: string[]
}
